package com.tim.third.demo;

import com.github.javafaker.Faker;

import java.util.Locale;

/**
 * 数据模拟
 * javafaker
 * https://gitee.com/ahexian/javafaker
 */
public class FakerDemo {
    public static void main(String[] args) throws Exception {
        FakerDemo obj = new FakerDemo();
        obj.faker();
    }


    public void faker() {
        Faker faker = new Faker(Locale.CHINA);
        System.out.println(faker.name().fullName());
        System.out.println(faker.address().buildingNumber());
        String a = "Hello";
        // \u000d a = "world";
        System.out.println(a);
        // \u000a a = "hello world!";
        System.out.println(a);
    }

}
